<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GdauiProviderSelector: GNOME Data Access 5 manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GNOME Data Access 5 manual">
<link rel="up" href="ch22.html" title="User interface API reference">
<link rel="prev" href="GdauiLogin.html" title="GdauiLogin">
<link rel="next" href="GdauiDataSelector.html" title="GdauiDataSelector">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GdauiProviderSelector.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GdauiProviderSelector.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
                  <a href="#GdauiProviderSelector.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch22.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GdauiLogin.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GdauiDataSelector.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GdauiProviderSelector"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GdauiProviderSelector.top_of_page"></a>GdauiProviderSelector</span></h2>
<p>GdauiProviderSelector — Select a database provider from a combo box</p>
</td>
<td class="gallery_image" valign="top" align="right"><img src="vi-provider-selector.png"></td>
</tr></table></div>
<div class="refsect1">
<a name="GdauiProviderSelector.stability-level"></a><h2>Stability Level</h2>
<a href="http://foldoc.org/Stable"><span class="acronym">Stable</span></a>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="GdauiProviderSelector.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdauiProviderSelector.html#gdaui-provider-selector-new" title="gdaui_provider_selector_new ()">gdaui_provider_selector_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="returnvalue">GdaServerProvider</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdauiProviderSelector.html#gdaui-provider-selector-get-provider-obj" title="gdaui_provider_selector_get_provider_obj ()">gdaui_provider_selector_get_provider_obj</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdauiProviderSelector.html#gdaui-provider-selector-get-provider" title="gdaui_provider_selector_get_provider ()">gdaui_provider_selector_get_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdauiProviderSelector.html#gdaui-provider-selector-set-provider" title="gdaui_provider_selector_set_provider ()">gdaui_provider_selector_set_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdauiProviderSelector.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody><tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GdauiProviderSelector.html#GdauiProviderSelector-struct" title="struct GdauiProviderSelector">GdauiProviderSelector</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdauiProviderSelector.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
        <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html#GtkWidget-struct">GtkWidget</a>
            <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gtk3/GtkContainer.html#GtkContainer-struct">GtkContainer</a>
                <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gtk3/GtkBin.html#GtkBin-struct">GtkBin</a>
                    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gtk3/GtkComboBox.html#GtkComboBox-struct">GtkComboBox</a>
                        <span class="lineart">╰──</span> <a class="link" href="GdauiCombo.html" title="GdauiCombo">GdauiCombo</a>
                            <span class="lineart">╰──</span> GdauiProviderSelector
</pre>
</div>
<div class="refsect1">
<a name="GdauiProviderSelector.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GdauiProviderSelector implements
 AtkImplementorIface,  <a href="/usr/share/gtk-doc/html/gtk3/GtkBuildable.html#GtkBuildable-struct">GtkBuildable</a>,  <a href="/usr/share/gtk-doc/html/gtk3/GtkCellLayout.html#GtkCellLayout-struct">GtkCellLayout</a>,  <a href="/usr/share/gtk-doc/html/gtk3/GtkCellEditable.html#GtkCellEditable-struct">GtkCellEditable</a> and  <a class="link" href="GdauiDataSelector.html" title="GdauiDataSelector">GdauiDataSelector</a>.</p>
</div>
<div class="refsect1">
<a name="GdauiProviderSelector.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;libgda/thread-wrapper/gda-thread-wrapper.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="GdauiProviderSelector.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="GdauiProviderSelector.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gdaui-provider-selector-new"></a><h3>gdaui_provider_selector_new ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
gdaui_provider_selector_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Create a new <a class="link" href="GdauiProviderSelector.html" title="GdauiProviderSelector"><span class="type">GdauiProviderSelector</span></a> widget.</p>
<div class="refsect3">
<a name="gdaui-provider-selector-new.returns"></a><h4>Returns</h4>
<p>the newly created widget. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdaui-provider-selector-get-provider-obj"></a><h3>gdaui_provider_selector_get_provider_obj ()</h3>
<pre class="programlisting"><a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="returnvalue">GdaServerProvider</span></a> *
gdaui_provider_selector_get_provider_obj
                               (<em class="parameter"><code><a class="link" href="GdauiProviderSelector.html" title="GdauiProviderSelector"><span class="type">GdauiProviderSelector</span></a> *selector</code></em>);</pre>
<p>Get the selected provider as a <a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> object</p>
<div class="refsect3">
<a name="gdaui-provider-selector-get-provider-obj.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>selector</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdauiProviderSelector.html" title="GdauiProviderSelector"><span class="type">GdauiProviderSelector</span></a> widget</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdaui-provider-selector-get-provider-obj.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdaui-provider-selector-get-provider"></a><h3>gdaui_provider_selector_get_provider ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gdaui_provider_selector_get_provider (<em class="parameter"><code><a class="link" href="GdauiProviderSelector.html" title="GdauiProviderSelector"><span class="type">GdauiProviderSelector</span></a> *selector</code></em>);</pre>
<p>Get the selected provider.</p>
<div class="refsect3">
<a name="gdaui-provider-selector-get-provider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>selector</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdauiProviderSelector.html" title="GdauiProviderSelector"><span class="type">GdauiProviderSelector</span></a> widget</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdaui-provider-selector-get-provider.returns"></a><h4>Returns</h4>
<p>the selected provider, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no provider is selected. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdaui-provider-selector-set-provider"></a><h3>gdaui_provider_selector_set_provider ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gdaui_provider_selector_set_provider (<em class="parameter"><code><a class="link" href="GdauiProviderSelector.html" title="GdauiProviderSelector"><span class="type">GdauiProviderSelector</span></a> *selector</code></em>,
                                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *provider</code></em>);</pre>
<p>Forces <em class="parameter"><code>selector</code></em>
 to be set on <em class="parameter"><code>provider</code></em>
</p>
<div class="refsect3">
<a name="gdaui-provider-selector-set-provider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>selector</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdauiProviderSelector.html" title="GdauiProviderSelector"><span class="type">GdauiProviderSelector</span></a> widget</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>provider</p></td>
<td class="parameter_description"><p>the provider to be selected, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the default (SQLite). </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdaui-provider-selector-set-provider.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>provider</code></em>
has been selected</p>
</div>
<p class="since">Since: 4.2</p>
</div>
</div>
<div class="refsect1">
<a name="GdauiProviderSelector.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GdauiProviderSelector-struct"></a><h3>struct GdauiProviderSelector</h3>
<pre class="programlisting">struct GdauiProviderSelector;</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>